
<h3><?php echo $user->first_name.' '.$user->last_name."'s Orders";?></h3>
<table>
<tr>
	<th>Order #</th>
	<th>Date Placed</th>
	<th>Shipping Date</th>
	<th>Status</th>
	<th>Total</th>
</tr>
<?php foreach($orders as $order): ?>
	<tr>
	<td><?php echo Html::anchor('admin/users/order/'.$order->id, 'Order #'.$order->id);?></td>
	<td><?php echo $order->date_placed;?></td>
	<td><?php echo date('m/d/Y', $order->transaction->date_finalized);?></td>
	<td>
	<?php if(strtotime('now') < $order->transaction->date_finalized):?>	
	Waiting to Ship
	<?php else:?>
	Shipped	
	<?php endif;?>
	</td>
	<td><?php echo money_format('%n', $order->transaction->amount);?></td>
	</tr>
<?php endforeach;?>
</table>
<?php echo Html::anchor('admin/users', 'Back to Users');?>

